function getAuthenticateMsg(username, password){
	return {
		login : username,
		pwd : password
	};
}

function getPingMsg(sessionId, stamp){
	return {
		sid : sessionId,
		type: "ping",
		data: $.toJSON({
			stamp : stamp
		})
	};
}

